
<style>
    body{
        background: #F9F9F9;
    }
</style>
<script>
    var teachers = {{ teachers | json_encode }};
</script>
<form id="xh_form" class="xh-form"  method="post"    style="margin-left: 20px;">
    <div class="xh-area-form">
        <table>
            <tr>
                <td style="width: 75px;"><label>班级</label><input name="iSchoolId" type="hidden" value="{{ schoolId }}"><input name="iBPPId" type="hidden" value="{{ bpId }}"><input name="iRTId" type="hidden"></td>
                <td colspan="3">
                    <select name="classes[]" multiple="multiple" style="width: 450px">
                        {% for id,text in classes  %}
                            <option value="{{ text }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
            <tr>
                <td><label>教师</label></td>
                <td>
                    <select name="teachers[]" multiple="multiple" style="width: 300px;">
                        {% for id,text in teachers  %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td><a id="allSelect" class="btn btn-primary" >全部选中</a></td>
            </tr>
            <tr>
                <td><label>学生领用</label></td>
                <td  colspan="3"><input type="number" name="stuTabletNum" value="0" readonly></td>
            </tr>
            <tr>
                <td><label>教师领用</label></td>
                <td  colspan="3"><input type="number" name="tchTabletNum" value="0" readonly></td>
            </tr>
        </table>
    </div>
</form>